package com.tang.bean;

import java.util.List;

public class Page<T> {
    public static final Integer MAX_PAGE_SIZE=20;
    //总页码数
    private Integer pageTotal;
    //当前页码
    private Integer pageNo;
    //每页可显示数量
    private Integer maxPageSize=MAX_PAGE_SIZE;
    //当前页显示的数据
    private List<T> pageItems;
    //总记录数
    private Integer itemsCount;

    public Integer getPageTotal() {
        return pageTotal;
    }

    public Integer getItemsCount() {
        return itemsCount;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public Integer getMaxPageSize() {
        return maxPageSize;
    }

    public List<T> getPageItems() {
        return pageItems;
    }

    public void setMaxPageSize(Integer maxPageSize) {
        this.maxPageSize = maxPageSize;
    }

    public void setPageTotal(Integer pageTotal) {
        this.pageTotal = pageTotal;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public void setItemsCount(Integer itemsCount) {
        this.itemsCount = itemsCount;
    }

    public void setPageItems(List<T> pageItems) {
        this.pageItems = pageItems;
    }
}
